Skip to content

Improve lookup of JavaClass instances in an environment #49

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 7, 2024

Conversation

DougGregor
Copy link
Member

Teach the low-level getJNIClass API to properly check for Java exceptions and turn them into Swift errors. Then add a higher-level API JavaClass.init(in:) to look up a specific imported Java class within the given environment.

Teach the low-level getJNIClass API to properly check for Java
exceptions and turn them into Swift errors. Then add a higher-level
API `JavaClass.init(in:)` to look up a specific imported Java class
within the given environment.
@DougGregor DougGregor merged commit 7025228 into swiftlang:main Oct 7, 2024
8 of 9 checks passed
@DougGregor DougGregor deleted the javaclass-lookup branch October 7, 2024 18:51
Copy link
Collaborator

@ktoso ktoso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants